package module3;

import java.io.PrintStream;
import java.util.Scanner;

public class RepeatCharacter2 {
	PrintStream out;
	Scanner in;
	RepeatCharacter2(){
		out = new PrintStream(System.out);
		in = new Scanner(System.in);
	}

	int readNumber(String teken){
		out.printf("Geef het aantal %s: ",teken);
		int number = in.nextInt();
		return number;
	}
	void printCharacter(char c,int n){
		for(int i = 0;i < n;i++){
			out.printf("%c",c);
		}
		out.printf("\n");
	}
	void start(){
		printCharacter('!',readNumber("uitroeptekens"));
		printCharacter(',',readNumber("kommas"));
	}
	public static void main(String[] args) {
new RepeatCharacter2().start();

	}

}
